// 引入defineStore用于创建store
import { defineStore } from "pinia";

// 定义并暴露一个store
export const useMapStore = defineStore("defineMap", {
  // 动作
  actions: {},
  // 状态
  state() {
    return {
      map: null,
      layerGroupName: null,
      timer: 0, // 基本信息表格
      intervalTime: 30,
      licensePlates: [],
      dateTimeRange: [],
      trajectoryDetailsTableTimer: 0, // 基本信息表格
      trajectoryDetailsTableData: [],
      trajectoryNameList: [],
      trajectoryDetailsTable: "",
      basicInfoTableData: [],
      loading: true,
      polylineData: [],
      polylineVisible: false,
      polylineKey: "",
      pointData: null,
      pointVisible: false,
      pointKey: "",
      allPointsVisible: false,
      allPointsKey: ""
    };
  },
  // 计算
  getters: {},
});